<template>
	<view class="SubmitBtn flex-center">
		<van-button type="primary" size="small" block @click="submit">{{props.name}}</van-button>
	</view>
</template>

<script setup>
	import { reactive, onMounted, computed, ref } from 'vue'
	import { onLoad } from '@dcloudio/uni-app'

	const emit = defineEmits(['submit'])
	const props = defineProps({
		name: {
			type: String,
			default: () => {}
		}
	})
	const state = reactive({
		data: {}
	})

	const submit = () => {
		emit('submit')
	}

	onLoad((query) => {

	})
</script>

<style lang="scss" scoped>
	.SubmitBtn {
		height: 100rpx;
		padding: 0 30rpx;
		border-top: 1rpx solid #eee;
	}
</style>